package edu.hawaii.solardecathlon.page.water;

import org.apache.wicket.markup.html.image.Image;
import org.apache.wicket.model.Model;
import edu.hawaii.solardecathlon.page.BasePage;
import edu.hawaii.solardecathlon.page.ExternalImageUrl;

/**
 * Water Page for Solar Decathlon wicket application.
 * 
 * @author Harry Kwan
 */
public class WaterPage extends BasePage {

  /** Support serialization. */
  private static final long serialVersionUID = 1L;

  /**
   * Water page content.
   */
  public WaterPage() {

    String piechart =
        "http://chart.apis.google.com/chart?chs=400x300&cht=p&chd=s:lY&chp=2.8&chl=ON|OFF";
    add(new ExternalImageUrl("water_pie_chart", piechart));

    add(new Image("water_sched", new Model<String>("sched.png")));
  }
}
